package com.xbongbong.pro.statistic.model;

import com.xbongbong.pro.domain.entity.BiProWarehouseEntity;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/3/20 10:16
 * @since v1.0
 */
public interface BiProWarehouseModel {
     Integer insert(BiProWarehouseEntity entity);

     Integer update(BiProWarehouseEntity entity);

     Integer save(BiProWarehouseEntity entity);

     void insertBatch(List<BiProWarehouseEntity> entityList);

     Integer deleteByKey( Long key,  String corpid);

     BiProWarehouseEntity getByKey(Long key, String corpid);

     List<BiProWarehouseEntity> findEntitys(Map<String ,Object> param);

     Integer getEntitysCount(Map<String ,Object>  param);

    /**
     * 把所有的isDone都置为0
     * @param key
     * @param corpid
     * @return
     */
     Integer updateIsDoneByKey(Long key, String corpid) ;

}
